/*
 * @Description: 测试请求
 * @Version: 1.0
 * @Autor: wq
 * @Date: 2021-08-04 14:33:48
 * @LastEditors: wq
 * @LastEditTime: 2021-08-04 14:34:14
 * @FilePath: \vue_project\mmpt\src\api\test.js
 */

import request from '@/utils/request'

// 获取菜单路由
export function getMenuLists(data) {
  return request({
    url: '/GJJAdmin/System/AvailableMenus',
    method: 'post',
    data
  })
}

// 获取用户信息
export function getUserInfo(){
  return request({
    url: '/IDS/SSO/UserInfo',
    method: 'get'
  })
}

// 上传图片、视频（多张）
export function mutiUploadFile(data){
  return axios({
      url: '/users/mutiUpload',
      method: 'post',
      data,
      //设置header信息
      headers:{'Content-Type':'multipart/form-data'}
  })
}

// 点击帮助
export function getMenuFunctionHelpMsg(query){
  return request({
    url: '/GJJCounter/Common/GetMenuFunctionHelpMsg',
    method: 'get',
    params: query
  })
}